
<div  class="row">
	<div  class="col-xs-12">
		<portlet portlet="onlycontent">
			
			<h2 class="Content-title">
				<?php echo $AppForum['AppForum']['name']; ?>
				&nbsp;<small><a target="_blank" href="/app_forum_threads/add?forum_id={{$AppForum['AppForum']['id']}}&app_id={{$app_id}}">发帖</a></small>
			</h2>
			{{if $AppForum['AppForum']['summary']}}
		    <div  id="Content-summary" class="clearfix">
		    	<blockquote><?php echo $AppForum['AppForum']['summary']; ?></blockquote>
		    </div>
		    {{/if}}
		</portlet>	
		
		<portlet model="AppForumThread" cache="no" portlet="body" recursive="-1" conditions="forum_id=$forum_id&app_id=$app_id" list_tpl="inner" limit="12">
		<li class="col-md-12">
		<a class="btn" target="_blank" href="/app_forum_threads/view/{{$item['id']}}?forum_id={{$forum_id}}&app_id={{$app_id}}">
			{{if $item['coverimg']}}
				<img style="max-width:300px;max-height:200px;" src="{{$this->Html->image($item['coverimg'],array('onlyurl'=>true))}}">
				<p>{{$item['name']}}</p>
			{{else}}
				<p>{{$item['name']}}</p>
			{{/if}}					
		</a>
		<p>{{$item['summary']}}</p>
		</li>
	</portlet>
	</div>	
</div>